package com.entity.journal;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author Chenql
 * date 2012-05-23
 * 个人模块--日志实体类
 */
@Entity
@Table(name = "t_journal")
public class Journal implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 142004132340617353L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
	
    private String title;
    
    private String content;
    
    private Integer readerNum;
    
    private Integer likeNum;
    
    private Integer categoryId;
    
    /**
     * 记录日志主人
     */
    private Integer userId;
    
    private Date editTime;
    
    public Journal()
    {
    	super();
    }
    
    public Journal(Integer id,String title,String content,Integer readerNum,Integer likeNum,
    		Integer categoryId,Integer userId,Date editTime)
    {
    	super();
    	this.id = id;
    	this.title = title;
    	this.content = content;
    	this.readerNum = readerNum;
    	this.likeNum = likeNum;
    	this.categoryId = categoryId;
    	this.userId = userId;
    	this.editTime = editTime;
    }

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getReaderNum() {
		return readerNum;
	}

	public void setReaderNum(Integer readerNum) {
		this.readerNum = readerNum;
	}

	public Integer getLikeNum() {
		return likeNum;
	}

	public void setLikeNum(Integer likeNum) {
		this.likeNum = likeNum;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	public void  setEditTime(Date editTime)
	{
	    this.editTime = editTime;
	}

	public Date getEditTime() {
		return editTime;
	}
}
